package com.zl.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Query {
    /**
     * 查询条件实体类
     */
    private String qename;
    private Integer qdeptNo;//null
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date qstartHireDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date qendHireDate;

    public String getQename() {
        return qename;
    }

    public void setQename(String qename) {
        this.qename = qename;
    }

    public Integer getQdeptNo() {
        return qdeptNo;
    }

    public void setQdeptNo(Integer qdeptNo) {
        this.qdeptNo = qdeptNo;
    }

    public Date getQstartHireDate() {
        return qstartHireDate;
    }

    public void setQstartHireDate(Date qstartHireDate) {
        this.qstartHireDate = qstartHireDate;
    }

    public Date getQendHireDate() {
        return qendHireDate;
    }

    public void setQendHireDate(Date qendHireDate) {
        this.qendHireDate = qendHireDate;
    }

    @Override
    public String toString() {
        return "Query{" +
                "qename='" + qename + '\'' +
                ", qdeptNo=" + qdeptNo +
                ", qstartHireDate=" + qstartHireDate +
                ", qendHireDate=" + qendHireDate +
                '}';
    }
}
